package com.nengchuan.kbms.dfs.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件分享
 * </p>
 *
 * @author abe
 * @since 2020-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_data_share")
@ApiModel(value="DataShare对象", description="文件分享")
public class DataShare implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "业务id")
    private Long bizId;

    @ApiModelProperty(value = "分享类型（d：文件夹；f：文件）")
    private String bizType;

    @ApiModelProperty(value = "分享开始时间")
    private Long shareBeginTime;

    @ApiModelProperty(value = "分享结束时间")
    private Long shareEndTime;

    @ApiModelProperty(value = "权限（0:预览，1:打印，2:下载）")
    private String purview;

    @ApiModelProperty(value = "留言")
    private String message;

    @ApiModelProperty(value = "创建人（分享人）id")
    @TableField(fill = FieldFill.INSERT)
    private Long createId;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createName;

    @ApiModelProperty(value = "修改人id")
    @TableField(fill = FieldFill.UPDATE)
    private Long modifyId;

    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.UPDATE)
    private String modifyName;

    @ApiModelProperty(value = "创建时间戳")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @ApiModelProperty(value = "修改时间戳")
    @TableField(fill = FieldFill.UPDATE)
    private Long modifyTime;


}
